<#macro validate>
<script src="${base}/resources/scripts/form/jquery.validate.js" type="text/javascript"></script>
<script src="${base}/resources/scripts/form/jquery.metadata.js" type="text/javascript"></script>
<script src="${base}/resources/scripts/form/additional-methods.min.js" type="text/javascript"></script>
<script src="${base}/resources/scripts/form/jquery.validate.msg_cn.js" type="text/javascript"></script>
<style>
	label.error {
	display: none;
	color: red;
	font-style: italic;
	font-weight: normal;
}

input.error {
	border: 2px solid red;
}

</style>
<script type="text/javascript">
   $(document).ready(function(){
       $.metadata.setType("attr", "validate");
   });
</script>
</#macro>